package com.echat.business.work.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.echat.business.work.dao.WorkerMapper;
import com.echat.business.work.model.Worker;
import com.echat.business.work.service.IWorkerService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 开发团人员配置表 服务实现类
 * </p>
 *
 * @author chentl123
 * @since 2019-06-17
 */
@Service
public class WorkerServiceImpl extends ServiceImpl<WorkerMapper, Worker> implements IWorkerService {
    @Override
    public List<Worker> getUnRecordWorkers() {
        //获取所有 当日未更新的员工   用户列表
        Wrapper<Worker> wrapper = new EntityWrapper<>();
        wrapper.eq("hasRecordToday", 0);
        return selectList(wrapper);
    }
}
